[index]

DeleteObject Message

Syntax

on deleteObject
end deleteObject Sent to the deleted object

Description

The deleteObject system message is generated whenever an object is deleted or cut, immediately before it is deleted.

Notes

The deleteObject message is purely informational. Intercepting the message with a handler does nothing to prevent the object from being deleted.

Examples

Create a button. Place the following handler in the script of the current card and then delete the button. on deleteObject put the target && "has been deleted."
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.